//
//  ImgLView.m
//  EarnBao
//
//  Created by xiaohui on 15/3/1.
//  Copyright (c) 2015年 杭州赚宝科技有限公司. All rights reserved.
//

#import "ImgLView.h"

@implementation ImgLView

- (void)setSubview
{
    self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height*3/4)];
    [self addSubview:_imageView];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, self.bounds.size.height * 3/4, self.bounds.size.width, self.bounds.size.height/4)];
    _label.font = [UIFont systemFontOfSize:12.0];
    _label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_label];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setSubview];
    }
    return self;
}


@end
